package com.example.demo.dao;

import com.example.demo.util.DbUtil;

import java.sql.Connection;
import java.sql.SQLException;

//创建对数据库连接对象
public class BaseDao {
    public Connection con=new DbUtil().getCon();
    public void closeDao(){
        try {
            con.close();
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}

